<?php
class Admin_Form_AddProductStatus extends Apps_Form {
	public function init() {
		$title = new Zend_Form_Element_Text(
				'title',
				array('label' 	 => 'Title',
				      'required' => true));
		$title->addValidator(new Zend_Validate_NotEmpty());

		$status = new Zend_Form_Element_Select(
		        'status',
		        array('label'      => 'Public',
		              'multiOptions' => array(1 => 'Yes', 0 => 'No')));

		$sortingNumber = new Zend_Form_Element_Text(
		        'sorting_number',
		        array('label'      => 'Sorting Number',
		              'class'      => 'input-mini'));

		$this->addElement($title)
			 ->addElement($status)
			 ->addElement($sortingNumber);

		$this->setLegend('Add New Product Status');
		$this->addActionGroup()
			 ->makeup();
	}
}